//
//  UIViewController+IGRouter.h
//  jingdongfang
//
//  Created by BOE on 2017/8/11.
//  Copyright © 2017年 ZhiYu Hao. All rights reserved.
//

#import <UIKit/UIKit.h>

///>页面跳转
@interface UIViewController (IGRouter)

+ (void)ig_pushViewController:(nullable UIViewController *)viewController
                     animated:(BOOL)animated;

+ (void)ig_pushViewControllerClass:(Class _Nonnull)vcClass
                          animated:(BOOL)animated;

+ (void)ig_presentViewController:(nullable UIViewController *)viewControllerToPresent
                        animated:(BOOL)flag
                      completion:(void (^ __nullable)(void))completion;
//返回至某个VC
+ (void)ig_popViewController:(Class _Nonnull)vcClass;
///>不知不觉中移除一个VC
+ (void)ig_delectViewController:(Class _Nonnull)vcClass;

///>获取当前展示VC的rootNav
+ (nullable UINavigationController *)ig_rootNavigationController;

@end
